package com.work.rcj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.work.rcj.entity.User;
import com.work.rcj.pojo.dto.UserDto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author rcj
 * @since 2022-02-26
 */
public interface UserMapper extends BaseMapper<User> {

    User selectUser(@Param("userName") String userName);

    List<User> userList(IPage<User> page, @Param("t")UserDto dto);
}
